package com.jyw.business.ins.domain.vo.web;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyw.common.annotation.Conversion;
import com.jyw.common.enums.ConversionType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

import java.time.LocalDateTime;


/**
 * @author Created by ZhangCheng on 2023/10/09
 */
@Data
@ApiModel("巡检任务转交记录返回实体")
@FieldNameConstants
public class InsTransmitRecordVO {

    /**
     * 主键
     */
    @ApiModelProperty("主键")
    private Long id;

    /**
     * 转交人
     */
    @ApiModelProperty("转交人")
    @Conversion(value = ConversionType.USER, name = InsTransmitRecordVO.Fields.transmitUserName)
    private Long transmitUserId;

    /**
     * 转交人名称
     */
    @ApiModelProperty("转交人名称")
    private String transmitUserName;

    /**
     * 接收人
     */
    @ApiModelProperty("接收人")
    @Conversion(value = ConversionType.USER, name = InsTransmitRecordVO.Fields.receiveUserName)
    private Long receiveUserId;

    /**
     * 接收人名称
     */
    @ApiModelProperty("接收人名称")
    private String receiveUserName;

    /**
     * 转交时间
     */
    @ApiModelProperty("转交时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime createTime;
}
